"""


"""
from django.conf.urls import url
from . import views

urlpatterns = [

    url(r'^register/$', views.RegisterView.as_view(), name="register"),
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.CheckUsernameView.as_view(), name='username'),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.CheckMobileView.as_view(), name='mobile'),
    url(r'^login/$', views.LoginUserView.as_view(), name='login'),
    url(r'^emails/verification/$', views.EmailActiveView.as_view()),
    url(r'^logout/$', views.LogoutUserView.as_view()),
    url(r'^info/$', views.UserCenterView.as_view()),
    url(r'^emails/$', views.EmailSendView.as_view()),
    url(r'^addresses/$', views.AddressView.as_view()),
    url(r'^addresses/create/$', views.AddressCreateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/$', views.AddressUpdateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.AddressDefaultView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/title/$', views.AddressTitleView.as_view()),
    url(r'^password/$', views.PasswordChangeView.as_view()),
    url(r'^browse_histories/$', views.UserBrowserHistoryView.as_view()),
    url(r'^findpassword/$', views.FindPasswordView.as_view()),
    url(r'^accounts/(?P<username>.+)/sms/token/$', views.CodePhoneCheckerView.as_view()),
    url(r'^accounts/(?P<username>.+)/password/token/$', views.SmsCheckerView.as_view()),
    url(r'^users/(?P<user_id>\d+)/password/$', views.ChangePasswordView.as_view()),






]
